﻿cmake_minimum_required(VERSION 3.10)

if(APPLE)
    message(STATUS "Detected macOS platform")
    set(OpenCV_DIR "/opt/homebrew/opt/opencv/lib/cmake/opencv4")
    find_package(OpenCV 4 REQUIRED CONFIG)
    message(STATUS "OpenCV 版本:    ${OpenCV_VERSION}")
    message(STATUS "OpenCV 包含目录: ${OpenCV_INCLUDE_DIRS}")
    message(STATUS "OpenCV 库:      ${OpenCV_LIBS}")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
    message(STATUS "Detected Windows platform")
    add_definitions(-D_WIN32_WINNT=0x0A00)
endif()

set(SOURCE_FILES 
    ${PROJECT_SOURCE_DIR}/test/test_static.cpp
    #${PROJECT_SOURCE_DIR}/test/out_medical.h
    #${PROJECT_SOURCE_DIR}/test/out_medical.cpp
)


include_directories(${PROJECT_SOURCE_DIR}/test)
include_directories(${PROJECT_SOURCE_DIR}/ZDataFrame_static)

link_directories(${PROJECT_SOURCE_DIR}/bin)
add_executable(test_static ${SOURCE_FILES})
target_link_libraries(test_static PRIVATE ndframe)
target_include_directories(test_static PRIVATE ${PROJECT_SOURCE_DIR}/ZDataFrame_static)
